import { request } from '@/utils/request'

const api = {
  queryDocument: '/system/document/queryDocument',
  getByCatalogId: '/system/document/getByCatalogId',
    getAmpMenuByCatalogId: '/system/apmDocument/getByCatalogId',
}

export default api

export function getDocumentList (parameter) {
  console.log('getDocumentList = ' + JSON.stringify(parameter))
  return request({
    url: api.queryDocument,
    method: 'POST',
    data: parameter
  })
}

export function getByCatalogId (parameter) {
  console.log('getByCatalogId = ' + JSON.stringify(parameter))
  return request({
    url: api.getByCatalogId,
    method: 'POST',
    data: parameter
  })
}

export function getApmCatalogId (parameter) {
    return request({
        url: api.getAmpMenuByCatalogId,
        method: 'POST',
        data: parameter
    })
}
